package com.niiwoo.civet.trade.service.dubbo.invest;

import com.alibaba.dubbo.config.annotation.Service;
import com.niiwoo.civet.trade.dto.request.AddInterestRateConfigRequestDTO;
import com.niiwoo.civet.trade.dto.response.AddInterestRateConfigResponseDTO;
import com.niiwoo.civet.trade.service.invest.ProjectInvestPrizeDubboService;
import com.niiwoo.civet.trade.service.local.invest.ProjectInvestPrizeService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by dell on 2017/12/5.
 */
@Service(version = "1.0.0")
public class ProjectInvestPrizeDubboServiceImpl implements ProjectInvestPrizeDubboService {
	@Autowired
	private ProjectInvestPrizeService projectInvestPrizeService;

	@Override
	public void investPrizeBatchDeal() {
		projectInvestPrizeService.investPrizeBatchDeal();
	}

	@Override
	public AddInterestRateConfigResponseDTO getAddInterestRateConfig(AddInterestRateConfigRequestDTO addInterestRateConfigRequestDTO){
		return projectInvestPrizeService.getAddInterestRateConfig(addInterestRateConfigRequestDTO);
	}

	@Override
	public AddInterestRateConfigResponseDTO getAddInterestRateConfigById(Long id){
		return projectInvestPrizeService.getAddInterestRateConfigById(id);
	}
}
